<template>
	<view class="detailed-wrap">
		<view class="topVue">
			<view class="status"></view>
			<view class="navVue">
				<image src="../../static/imgs/back.png" style="width: 36rpx; height: 36rpx;" @click="backFun"></image>
				<view class="nav-title">提币明细</view>
				<view style="width: 36rpx; height: 36rpx;"></view>	
			</view>
		</view>
		<view class="place"></view>
		<view class="loading-box" v-if="isLoading">
			<u-loading mode="flower"></u-loading>
		</view>
		<view class="content-wrap">
			<view class="title-box">
				<view>{{$t('时间')}}</view>
				<view>{{$t('金额')}}</view>
			</view>
			<view class="content-box">
				<view class="content-item" v-for="item in list">
					<view class="time">{{ item.createTime }}</view>
					<view class="amount">{{ item.amount }} USDT</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				isLoading: false,
				list: [],
				pageSize: 999999,
				pageNum: 1,
			};
		},
		methods: {
			getList() {
				this.$http
					.post(
						`/front/assets/extractLog?pageNum=${this.pageNum}&pageSize=${this.pageSize}`
					)
					.then((res) => {
						if (res.code === 0) {
							this.list = res.obj.list;
						}
					})
					.catch((err) => {});
			},
			backFun(){
				uni.navigateBack({
					delta: 1
				})
			},
		},

		onLoad() {
			this.getList();
		},
	};
</script>

<style lang="scss">
	.detailed-wrap {
		width: 100%;
		height: 100%;
		background: url("../../static/imgs/bg.png") no-repeat;
		background-size: 100% 100%;
		box-sizing: border-box;
		position: fixed;
		.place {
			height: calc(var(--status-bar-height) + 92rpx);
		}
		
		.topVue {
			width: 100%;
			position: absolute;
			left: 0;
			top: 0;
			z-index: 99;
			.status {
				width: 100%;
				height: var(--status-bar-height);
			}
			.navVue {
				width: 100%;
				height: 92rpx;
				background: linear-gradient(to right, #FFFBFF, #FFE7F4);
				display: flex;
				justify-content: space-between;
				align-items: center;
				box-sizing: border-box;
				padding: 0 30rpx;
				.nav-title {
					width: 420rpx;
					height: 92rpx;
					font-size: 36rpx;
					color: #04094C;
					text-align: center;
					line-height: 92rpx;
				}
			}
		}

		.title-box {
			width: 690rpx;
			height: 60rpx;
			background: #FFE3F0;
			border-radius: 4rpx;
			box-sizing: border-box;
			display: flex;
			align-items: center;
			justify-content: space-between;
			margin: 30rpx auto 0;
			padding: 0 20rpx;
			view {
				color: #9F8C96;;
				font-size: 28rpx;
			}
		}

		.content-box {
			width: 690rpx;
			height: 60rpx;
			margin: 0 auto;
			padding: 0 20rpx;
		
			.content-item {
				width: 100%;
				display: flex;
				justify-content: space-between;
				align-items: center;
				line-height: 70rpx;
				font-size: $uni-font-size-30;
				font-family: PingFang SC;
				font-weight: 300;
		
				.time {
					color: #666;
				}
		
				.amount {
					color: #333;
				}
			}
		}
	}
</style>